package com.neusoft.elm.po;

import java.util.Objects;

public class User {
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public Integer getDelTag() {
        return delTag;
    }

    public void setDelTag(Integer delTag) {
        this.delTag = delTag;
    }

    private String userId;
   private String password;
   private String username;
   private Integer userSex;
   private String userImg;
   private Integer delTag;
   public User(){

   }
   public User(String userId,String password,String username,int userSex,String
               userImg,int delTag){
       this.delTag=delTag;
       this.password=password;
       this.userId=userId;
       this.userImg=userImg;
       this.username=username;
       this.userSex=userSex;

   }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", password='" + password + '\'' +
                ", username='" + username + '\'' +
                ", userSex=" + userSex +
                ", userImg='" + userImg + '\'' +
                ", delTag=" + delTag +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return Objects.equals(userId, user.userId) &&
                Objects.equals(password, user.password) &&
                Objects.equals(username, user.username) &&
                Objects.equals(userSex, user.userSex) &&
                Objects.equals(userImg, user.userImg) &&
                Objects.equals(delTag, user.delTag);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, password, username, userSex, userImg, delTag);
    }
}
